﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;


namespace Black_Jack
{
    public class Card
    {public int k=0, nam=0;
        private int i=0;
     public int[] razd = new int[9];
     public int[] kol = new int[36];
     
        public void kons()
     {
         for (int i = 0; i < 36; i++)
         {
             kol[i] = i;
         }
     }
     
       
        public int karta()
        { int k=0, i=0;
            for (int q = 0; q < 9; q++)
            {
                razd[q] = 0;

            }
            kons();
            i = 0;
            while (i < 9)
            {
                Thread.Sleep(1);
                Random rand = new Random();
                k = rand.Next(0, 35);
                if (kol[k] < 36)
                {
                    razd[i] = k;
                    kol[k] = 100;
                    i++;
                    
                }
               
            }
            return k;
            }
         
    }

}
